<style tyle="text/css">
    .modal-lg {
      width: 70%;
    }
	.red {
		color: #f00
	}
</style>
<div class="modal-header">
	<h4 class="modal-title">{{record.order_state_time}}月份全部补贴数据</h4>
</div>
<div class="modal-body" style="padding: 15px 0px;">

	<table class="table table-striped table-bordered" style="margin: 0px">
		<thead>
			<tr>
				<th class="col-md-2 text-center">企业名称</th>
				<th class="col-md-1 text-center">企业编号</th>
				<th class="col-md-1 text-center">补贴人数</th>
				<th class="col-md-1 text-center">补贴总额</th>
				<th class="col-md-1 text-center"></th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="info in infolist" ng-class="{'red': !info.id}">
				<td>{{info.company_name || '-'}}</td>
				<td class="text-center">{{info.company_code}}</td>
				<td class="text-center">{{info.num}}</td>
				<td class="text-center">{{info.subsidy_num / 100 | currency: '￥'}}</td>
				<td class="text-center">
					<div ng-show="info.plan_num == 0">
						<button type="button" ng-show="info.id" ng-click="syncData(info)" class="btn btn-success btn-xs">同步</button>
						<span ng-show="!info.id">无法同步</span>
					</div>
					<span ng-show="info.plan_num != 0">已同步 <span class="red">{{info.plan_num}}</span> 人</span>
				</td>
			</tr>
		</tbody>
	</table>

</div>
<div class="modal-footer">
	<button class="btn btn-success" type="button" ng-click="syncAll()">全部同步</button>
	<button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>

